<?php 
 include "config.php";
 $sql = "select count(admin) from $test_user where name='$_COOKIE[user]'";
 $result = $mysqli->query($sql);
 $admin=$result->fetch_row();
 if($admin[0]==0){
 	echo "您不是管理员,不能执行该操作!</p>";
	exit("");
 }
 
 ?>